package oo2;

public class StudentArray {

	public static void main(String[] args) {
//		int[] a2 = new int[20];
//		a2[0] = 100;
		Jiaowuchu j = new Jiaowuchu();
		j.wname = "工大教务处";
		// 学生数组
		Student s[] = new Student[20];
		for (int i = 0; i < s.length; i++) {
			s[i] = new Student("刘" + (i + 1), 20 + i, "hf-" + i, (int) (Math.random() * 50));
//			s[i] = new Student();
//			s[i].name = "刘" + (i + 1);
//			s[i].age = 22 + i;
//			s[i].no = "hf00" + i;
//			s[i].score = (int) (Math.random() * 50) + 50;
		}
		System.out.println("修改前，成绩如下：");
		for (Student s1 : s)
			s1.show();
		j.inc4(s);
		System.out.println(">>>修改后：");
		for (Student s1 : s)
			s1.show();
//		// System.out.println(s);//
//		/*
//		 * for (Student s1 : s) System.out.println(s1);
//		 */
//		s[0] = new Student();
//		s[0].name = "尼古拉-大星";
//		s[0].age = 21;
//		s[0].show();
//
//		Student[] s2 = { new Student(), new Student(), new Student(), new Student() };
//		s2[0].show();
	}

}
